import turtle as t
t.pencolor("orangered") 
t.pensize(15)
t.speed(0) # 设置画笔绘画速度 0最快
# 大光芒
i = 0
while i < 8:
    t.forward(300/2)
    t.backward(300/2)
    t.right(360/8)
    i += 1
# 小光芒
t.right(22.5) 
t.pencolor("gold")
t.pensize(8)
for i in range(8):
    t.forward(270/2)
    t.backward(270/2)
    t.right(360/8)
# 太阳
t.dot(240,"white")
t.dot(200,"coral")
# 最后设置
t.hideturtle()
t.done()